import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'
import {createUnistorage} from './uni_modules/pinia-plugin-unistorage'
import * as Pinia from 'pinia';
import Vant from 'vant';
import 'vant/lib/index.css';
import { createSSRApp } from 'vue'

// import './mock/index.js'
export function createApp() {
    const app = createSSRApp(App)
    const store = Pinia.createPinia()
    store.use(createUnistorage())
    app.use(store)
    app.use(Vant)
    app.use(uviewPlus)
    return {
        app
    }
}
